package com.wf.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.wf.domain.HousesInfo;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * @Author: zhiyu
 * @Date:15:01
 * @DESC:
 */
@Data
public class Apart_houses implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = -3989590486238519638L;
    /**
     * 公寓信息ID，主键自增
     */
    @TableId(type = IdType.AUTO)
    private Integer apartmentId;

    /**
     * 公寓名称
     */
    private String name;

    /**
     * 公寓联系电话
     */
    private String phone;

    /**
     * 地址
     */
    private String address;

    /**
     * 营业时间
     */
    private String businessHours;

    /**
     * 房间数
     */
    private Integer rooms;

    /**
     * 单元数
     */
    private Integer units;

    /**
     * 图片路径
     */
    private String images;

    /**
     * 创建日期
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Map<String,Object> location;


    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createDate;
    /**
     * 更新日期
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateDate;
    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;
    @TableField(exist = false)
    private List<HousesInfo> housesInfoList;
}
